#include "XMPPClient.h"
#include "Poco/Util/Application.h"

using namespace cm_nat;

int main()
{
    Poco::Util::Application* p_app = new Poco::Util::Application;
    p_app->loadConfiguration("c:/test/test_case.xml");

    XMPPClient client;

    client.setup("cmjabber_d@jabber.org", "123456", "client", "jabber.org");
    //client.setup("cmjabber_b@jabber.org", "123456", "client", "jabber.org");
    client.connect();


    std::string a;

    while(1)
    {
        std::cin>>a;
        client.disconnect();

    }

    return 0;
}